layui.use(['layer', 'form', 'formX', 'setter', 'mynotice', 'admin', 'ax', 'util', 'dataGrid', 'element'], function () {
    var $ = layui.jquery;
    var layer = layui.layer;
    var form = layui.form;
    var formX = layui.formX;
    var setter = layui.setter;
    var mynotice = layui.mynotice;
    var admin = layui.admin;
    var $ax = layui.ax;
    var util = layui.util;
    var dataGrid = layui.dataGrid;
    var element = layui.element;
    
    var Res = {
    	ins: {},
    	dataGridRender:() => { // 渲染数据列表
    		Res.ins = dataGrid.render({
    	        elem: '#userReslist',  // 容器
    	        templet: '#lires',  // 模板
    	        url: '/api/zp/res/list',  // 数据接口
    	        where:{userId: $('#authuserid').val(), draft: '0'},
    	        page: {limit: 20},  // 开启分页
    	        parseData: function(res) {
    	        	return res;
    	        },
    	        done: function(res, curr, count){
    	        	$('#releaseNum').text(count);	
    	        	$('.wall').jaliswall({item: '.article'});
    	        }
    	    });
    	}
    }
    Res.dataGridRender();
    
});